<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!doctype html>
<html lang="zh_CN">
<head>
    <base href="<%=basePath%>" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>欢迎使用家政后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css">
    <script src="lib/jquery-1.11.1.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="stylesheets/theme.css">
    <link rel="stylesheet" type="text/css" href="stylesheets/premium.css">
    <script type="text/javascript">
        function checkLogin() {
            var username = document.myform.username.value;
            var password = document.myform.password.value;
            if (username == '') {
                alert('请输入用户名');
                document.myform.username.focus();
                return false;
            }
            if (password == '') {
                alert('请输入密码');
                document.myform.password.focus();
                return false;
            }
        }
    </script>
    <script type="text/javascript">
        $(function() {
            var match = document.cookie.match(new RegExp('color=([^;]+)'));
            if (match)
                var color = match[1];
            if (color) {
                $('body').removeClass(function(index, css) {
                    return (css.match(/\btheme-\S+/g) || []).join(' ')
                })
                $('body').addClass('theme-' + color);
            }

            $('[data-popover="true"]').popover({
                html : true
            });

        });
    </script>
    <style type="text/css">
        #line-chart {
            height: 300px;
            width: 800px;
            margin: 0px auto;
            margin-top: 1em;
        }

        .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover {
            color: #fff;
        }
    </style>
</head>
<body class="theme-blue">
<div class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <a class="" href="index.html"><span class="navbar-brand"><span class="fa fa-paper-plane"></span> 欢迎使用家政后台管理系统</span></a>
    </div>

    <div class="navbar-collapse collapse" style="height: 1px;"></div>
</div>



<div class="dialog">
    <div class="panel panel-default">
        <p class="panel-heading no-collapse">欢迎使用家政后台管理系统</p>
        <div class="panel-body">
            <form action="<%=basePath%>employ/login2.action" name="myform" method="post" onSubmit="return checkLogin()">
                <div class="form-group">
                    <label>用户名</label> <input type="text" name="username" id="username" placeholder="请输入用户名"
                                              class="form-control span12" />
                    <%-- <label><%=(null == request.getAttribute("message") ? "" : request.getAttribute("message"))%></label>
                     <%=basePath%>--%>
                </div>
                <div class="form-group">
                    <label>密码</label> <input type="password" name="password" id="password" placeholder="请输入密码"
                                             class="form-controlspan12 form-control" />
                </div>
                <input type="submit" value="登录" class="btn btn-primary pull-right">&nbsp;&nbsp;
                <input type="button" value="注册" class="btn btn-primary pull-right" onclick="window.location='/JiaZheng/employ/addemploy2.jsp'" >
                <div class="clearfix"></div>
            </form>
        </div>
    </div>
</div>
<script src="lib/bootstrap/js/bootstrap.js"></script>

<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function() {
        $('.demo-cancel-click').click(function() {
            return false;
        });
    });
</script>
</body>
</html>